#inlcude"stdafx.h"函数

来源:百度知道 编辑:UC知道 时间:2024/05/18 14:23:18
谁能帮我,找一个C语言的"#inlcude"stdafx.h"函数".谢谢,急用.
谢谢一楼的.你给是这函数好像是C++里面的,我要在C语言中用啊,编译时又提示找不到"WINDOWS.H","WINSOCK2.H","WS2TCPIP.H"这三个函数.麻烦.要是C是这"stdafx.h"函数,请把其它三函数也一样给我吧.谢谢.

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#if !defined(AFX_STDAFX_H__4607A810_33E2_483D_80D8_BE41F0D473D5__INCLUDED_)
#define AFX_STDAFX_H__4607A810_33E2_483D_80D8_BE41F0D473D5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#define DLLEXPORT __declspec(dllexport)
#define DLLIMPORT __declspec(dllimport)

#include "stdio.h"
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>

#pragma comment(lib,"ws2_32.lib")

// TODO: reference additional headers your program requires here
void Msg(char *szFormat, ...);
void dbMsg(char *szFormat, ...);
//{{AFX